<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1{
            width: 925px;
            height: 925px;
            background-color: red;
        }
        .box1 div{
            width: 300px;
            height: 300px;
            background-color: darkmagenta;
            color: white;
            text-align: center;
            line-height: 300px;
            float: left;
            border: 4px solid yellow;
        }
        .box2{
            width: 925px;
            height: 925px;
            background-color: yellow;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            align-items: center;
        }
        .box2 div{
            width: 300px;
            height: 300px;
            background-color: greenyellow;
            color: black;
            text-align: center;
            line-height: 300px;
        }
    </style>
</head>
<body>
    <div class="box1">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
        <div>7</div>
        <div>8</div>
        <div>9</div>
    </div>
    <div class="box2">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
        <div>7</div>
        <div>8</div>
        <div>9</div>
    </div>
</body>
</html>